<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
        /*设置当前网页的视距为800px,人眼距离网页的距离*/
        perspective: 800px;
    }
    .box1{
        width: 100px;
        height: 100px;
        background-color: #bfa;
        margin: 200px auto;

        transition: 2s;
    }
    .box1:hover{
        transform: rotateY(180deg) translateZ(200px);
        /*设置背面显示 */
        backface-visibility: hidden;
    }
</style>
<body>
<div class="box1"></div>
</body>
</html>
